File formats used with ASCII MADNESS II
---------------------------------------

PALETTE (.PAL) FILES
	I know that .PAL is an official palette file extension, but the .PAL files used
	in this are not based on it. They follow this format:
		<short:Number of entries> 
		{ <byte:Character><byte:Colour>
		  <byte:Red><byte:Green><byte:Blue> } Repeated for number of Entries
	So, if there were 5 "colours" in the palette, there would be a short with the
	value 5 followed by 5 groups of 5 bytes, the first of a group being the ASCII
	character for that entry and the second byte being the colour. The colour byte
	is made up of a foreground and a background colour (each four bits) which can
	be made up using the values FOREGROUND_RED, FOREGROUND_GREEN, FOREGROUND_BLUE
	and FOREGROUND_INTENSITY together with BACKGROUND_RED, BACKGROUND_GREEN (&c).
	After the character and colour bytes are three more making up an RGB value
	that maps to that particular character/colour pair. This is so that we can
	build up a colourmap.
	
SPRITE (.SPR) FILES
	These are simply RLE compressed lists of colour indices from the palette.
	The format is two shorts (image width then image height) followed by the image
	data. A run is indicated with {flag, colour, length}, so a run of 32 blocks of
	colour 54 would be represented with {-1, 54, 32}. (The run flag is -1).
	Finally, transparent pixels are colour -2.
	
MESH (.MSH) FILES
	Self-explanatory, pretty much:
		[num triangles](vertex coords){texture coords}(normals)
		               ^-----+----Repeated 3 times------------^
		                     |
		                     +--------Each group 
		                 of 3 repeated for number of triangles.

WAD (.WAD) FILES
	This isn't the DOOM you're looking for.